﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class DynamicMethodPropertyGetter : IPropertyGetter
    {
        private readonly object _instance;
        public DynamicMethodPropertyGetter(object instance)
        {
            this._instance = instance;
        }
        public NamedArgument[] GetNamedArguments()
        {
            return DynamicMethodHelper.GetProperties(_instance);
        }
    }
}
